const isDev = process.env.NODE_ENV !== "production";

export const instance = isDev
  ? "/mgts/mgts/instance"
  : "https://jdts.library.sh.cn/mgts/mgts/instance";

export const instanceSearch = isDev
  ? "/mgts/mgts/instance/search"
  : "https://jdts.library.sh.cn/mgts/mgts/instance/search";

export const reportQuery = isDev
  ? "/report/api/queryinfo"
  : "https://www.cnbksy.com/report/api/queryinfo";

export const reportPreview = isDev
  ? "/report/api/previewinfo"
  : "https://www.cnbksy.com/report/api/previewinfo";

export const accountAuthtication = isDev
  ? "/management/webapi/cenofmagent/token/account"
  : "https://dhapi.library.sh.cn/management/webapi/cenofmagent/token/account";

export const downloadAsk = isDev
  ? "/jdts/downloadAsk"
  : "https://www.cnbksy.com/jdts/downloadAsk";

export const validCode = isDev
  ? "/jdts/validCode"
  : "https://www.cnbksy.com/jdts/validCode";

export const work = isDev
  ? "/mgts/mgts/work"
  : "https://jdts.library.sh.cn/mgts/mgts/work";
